package cn.pfz.Service.impl;

import cn.pfz.Service.IEmployeeRoleSerives;
import cn.pfz.domain.EmployeeRole;
import cn.pfz.mapper.EmployeeRoleMapper;
import cn.pfz.mapper.RoleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class IEmployeeRoleSerivesimpl implements IEmployeeRoleSerives {
    @Autowired
    private EmployeeRoleMapper employeeRoleMapper;

    @Override
    public int insert(EmployeeRole record) {


        return employeeRoleMapper.insert(record);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return employeeRoleMapper.deleteByPrimaryKey(id);
    }

    @Override
    public List<EmployeeRole> selectAll() {
        return employeeRoleMapper.selectAll();
    }

    @Override
    public void batchDeleteByEmployeeIds(Long[] ids) {
        employeeRoleMapper.batchDeleteByEmployeeIds(ids);
    }
}
